﻿
package extremefx.events {
	import flash.events.KeyboardEvent;	
	
	/**
	 * @author Marcelo Volmaro
	 * This event argument extends the default event argument and holds Flash's KeyboardEvent event.
	 */
	public final class KeyEventArgs extends EventArgs {
		private var _key:KeyboardEvent;
		private var _ad:Boolean;

		public function KeyEventArgs(pK:KeyboardEvent, pAlreadyDown:Boolean = false) {
			_key = pK;
			_ad = pAlreadyDown;
			super();
		}
		
		public function get keyboardEvent():KeyboardEvent {
			return _key;
		}
		
		public function get alreadyDown():Boolean {
			return _ad;
		}
	}
}
